import request from '@/sheep/request';

export default{
    //任务类型
    getTaskType:() => 
        request({
            url: 'task.task/getTaskType',
            method: 'GET',
            custom: {
                showLoading: false,
            },
        }),

    // 发布任务 
    createTask: (params) =>
        request({
        url: 'task.task/createTask',
        method: 'POST',
        params,
        custom: {
            showLoading: false,
        },
    }),
    //任务列表 
    getTaskList: (params) =>
        request({
        url: 'task.task/listTask',
        method: 'GET',
        params,
        custom: {
            showLoading: false,
        },
    }),

    //领取任务 
    createReceive: (params) =>
        request({
        url: 'task.task/createReceive',
        method: 'POST',
        params,
        custom: {
            showLoading: false,
        },
    }),

    //任务记录 
    getOrderList: (params) =>
        request({
        url: 'task.task_order/getOrderList',
        method: 'GET',
        params,
        custom: {
            showLoading: false,
        },
    }),

    //任务信息上传详情
    getOrderaddAata: (params) =>
        request({
        url: 'task.task_order/adddataDatail',
        method: 'GET',
        params,
        custom: {
            showLoading: false,
        },
    }),
    //任务信息上传 
    createOrderaddAata: (params) =>
        request({
        url: 'task.task_order/adddata',
        method: 'POST',
        params,
        custom: {
            showLoading: false,
        },
    }),

    //任务详情
    getInfo:(params) => 
        request({
            url: 'task.task/infos',
            method: 'GET',
            params,
            custom: {
                showLoading: false,
            },
        }),
};